//package stu.aistar.config;
//
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//import stu.aistar.interceptor.LoginInterceptor;
//
///**
// * springboot拓展springmvc功能配置拦截器
// */
//@Configuration
//public class WebMVCConfig implements WebMvcConfigurer {
//    //@Autowired
//    //private LoginInterceptor loginInterceptor;
//    //
//    //@Override
//    //public void addInterceptors(InterceptorRegistry registry) {
//    //    registry.addInterceptor(loginInterceptor)
//    //            .addPathPatterns("/**")//拦截所有的路径
//    //            .excludePathPatterns("/user/**","/index/movie","/imgs/**","/details/**","/movie/**","/admin/**","/movies/**");//排除哪些路径被拦截
//    //
//    //}
//}
